<?php
/* @var $this PageController */
/* @var $model Page */

?>
<div class="row">
	<div class="span12">
		<div style="padding: 10px;">
			<ul class="nav nav-tabs">
			    <li class="active"><a href="#membership" data-toggle="tab">Membership</a></li>
			    <li><a href="#join" data-toggle="tab">Join</a></li>
			    <li><a href="#renew" data-toggle="tab">Renew</a></li>
			    <li><a href="#installment" data-toggle="tab">Installment</a></li>
			    <li><a href="#convention" data-toggle="tab">Convention</a></li>
			</ul>
			<div class="tab-content">
			    <div class="tab-pane active" id="membership">
			    	<?php foreach ($model->contents as $content) { ?>
			    		<?php if($content->tabOrder == 1) { ?>
							<h3><?php echo $content->name; ?></h3>
							<?php echo $content->content; ?>
						<?php } ?>
					<?php } ?>
			    </div>
			    <div class="tab-pane" id="join">
			    	<?php foreach ($model->contents as $content) { ?>
			    		<?php if($content->tabOrder == 2) { ?>
							<h3><?php echo $content->name; ?></h3>
							<?php echo $content->content; ?>
						<?php } ?>
					<?php } ?>
			    </div>
			    <div class="tab-pane" id="renew">
			    	<?php foreach ($model->contents as $content) { ?>
			    		<?php if($content->tabOrder == 3) { ?>
							<h3><?php echo $content->name; ?></h3>
							<?php echo $content->content; ?>
						<?php } ?>
					<?php } ?>
			    </div>
			    <div class="tab-pane" id="installment">
			    	<?php foreach ($model->contents as $content) { ?>
			    		<?php if($content->tabOrder == 4) { ?>
							<h3><?php echo $content->name; ?></h3>
							<?php echo $content->content; ?>
						<?php } ?>
					<?php } ?>
			    </div>
			    <div class="tab-pane" id="convention">
			    	<?php foreach ($model->contents as $content) { ?>
			    		<?php if($content->tabOrder == 5) { ?>
							<h3><?php echo $content->name; ?></h3>
							<?php echo $content->content; ?>
						<?php } ?>
					<?php } ?>
			    </div>
			</div>
		</div>
	</div>
</div>